﻿namespace CommonBaseEntityDb.Db
{
    public class DbOption
    {
        /// <summary>
        /// Test数据库配置
        /// </summary>
        public const string TestDb = "TestDbConfig";

        /// <summary>
        /// Template数据库配置
        /// </summary>
        public const string TemplateDb = "TemplateDbConfig";

        /// <summary>
        /// 数据库名称
        /// </summary>
        public string? Name { get; set; }

        /// <summary>
        /// 数据库连接地址
        /// </summary>
        public string? ConnectionString { get; set; }

        /// <summary>
        /// 数据库连接地址是否加密
        /// </summary>
        public string? Encryption { get; set; }

        /// <summary>
        /// 数据库SQL是否跟踪
        /// </summary>
        public string? SqlTrace { get; set; }

        /// <summary>
        /// 执行超时时间
        /// </summary>
        public int CommandTimeOut { get; set; }
    }
}
